import { defineComponent, ref } from 'vue'
import Draw from './draw'

export default defineComponent({
	components: {
		Draw
	},
	setup() {
		const cdata = ref([
			{
				name: '石家庄市',
				value: 10,
				elseData: {}
			},
			{ name: '唐山市', value: 9 },
			{ name: '秦皇岛市', value: 8 },
			{ name: '邯郸市', value: 7 },
			{ name: '邢台市', value: 6 },
			{ name: '保定市', value: 5 },
			{ name: '张家口市', value: 4 },
			{ name: '承德市', value: 3 },
			{ name: '沧州市', value: 2 },
			{ name: '廊坊市', value: 3 },
			{ name: '衡水市', value: 2}
		])

		return () => {
			return (
				<div>
					<Draw cdata={cdata.value} />
				</div>
			)
		}
	}
})
